package org.davidtrevien.com.imput.datamodel.task;

import java.util.HashMap;
import java.util.Map;

import org.davidtrevien.com.imput.datamodel.os.OS;
import org.davidtrevien.com.imput.omi.panels.center.planning.model.TDay;

public class Task {

	OS os;
	
	String numberTCR;
	
	String level;
	
	String label;
	
	String deliveryRequieredDate;
	
	String deliveryEffectiveDate;
	
	float budget;
	
	float finalCost;
	
	float raf;
	
	float consomated;
	
	float plan;
	
	Map<TDay, Float> values = new HashMap<TDay, Float>();

	private final int id;

	public Task(int id, OS os) {
		this.id = id;
		this.os = os;
	}
	
	public String getNumberTCR() {
		return this.numberTCR;
	}

	public void setNumberTCR(String numberTCR) {
		this.numberTCR = numberTCR;
	}

	public String getLevel() {
		return this.level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getDeliveryRequieredDate() {
		return this.deliveryRequieredDate;
	}

	public void setDeliveryRequieredDate(String deliveryRequieredDate) {
		this.deliveryRequieredDate = deliveryRequieredDate;
	}

	public String getDeliveryEffectiveDate() {
		return this.deliveryEffectiveDate;
	}

	public void setDeliveryEffectiveDate(String deliveryEffectiveDate) {
		this.deliveryEffectiveDate = deliveryEffectiveDate;
	}

	public float getBudget() {
		return this.budget;
	}

	public void setBudget(float budget) {
		this.budget = budget;
	}

	public float getFinalCost() {
		return this.finalCost;
	}

	public void setFinalCost(float finalCost) {
		this.finalCost = finalCost;
	}

	public float getRaf() {
		return this.raf;
	}

	public void setRaf(float raf) {
		this.raf = raf;
	}

	public float getConsomated() {
		return this.consomated;
	}

	public void setConsomated(float consomated) {
		this.consomated = consomated;
	}

	public float getPlan() {
		return this.plan;
	}

	public void setPlan(float plan) {
		this.plan = plan;
	}

	public float getDay(int day, int month, int year) {
		return this.values.get(new TDay(day, month, year));
	}

	public void setDay(int day, int month, int year, float value) {
		this.values.put(new TDay(day, month, year), value);
	}

	public OS getOs() {
		return this.os;
	}

	public void setOs(OS os) {
		this.os = os;
	}

	public int getId() {
		return this.id;
	}

	public Map<TDay, Float> getValues() {
		return new HashMap<TDay, Float>(this.values);
	}

}
